<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/ui-lightness/jquery-ui-1.8.8.custom.css" type=text/css rel=stylesheet>
<title>管理区域</title>

<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>

<link href="style/js/Pager.css" rel="stylesheet" type="text/css" />
<script src="style/js/jquery.pager.js" type="text/javascript"></script>
<style>
.text {width:500px;}
</style>
</head>

<body>
<div id="man_zone">
  <div id="tabs">
	<ul>
		<li><a href="#tabs-2">栏目属性</a></li>
	</ul>
 <div id="tabs-2" style="padding-left:0.2em;padding-right:0.4em;">
 <form method="post" action="">
    <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <!--<tr>
        <td>所属父栏目</td>
        <td><label for="textfield"></label>
          <input type="text" name="bclassid" id="bclassid" value="<%$attr.bclassid%>" /></td>
      </tr> -->
      <tr>
        <td>栏目名称</td>
        <td><input type="text" class="text" name="classname" id="classname" value="<%$attr.classname%>" />(多个栏目用半角,号隔开)</td>
      </tr>
      
      <tr>
        <td>栏目别名</td>
        <td><input type="text" class="text" name="bname" id="bname" value="<%$attr.bname%>" />(多个别名用半角,号隔开)</td>
      </tr>
      <tr>
        <td>系统模型</td>
        <td>
        <select name="modid">
        <%foreach item=val from=$mode%>
        <option value="<%$val.mid%>"<%if $val.mid eq $attr.modid%> selected="selected"<%/if%>><%$val.mname%></option>
        <%/foreach%>
        </select>
        </td>
      </tr>
       <tr>
        <td>所属栏目</td>
        <td>
        <select name="bclassid">
          <option value="0">顶级栏目</option>
          <%foreach item=val from=$columns%>
          <%if $val.level eq 0%><option value="<%$val.classid%>"><%$val.classname%></option><%/if%>
          <%/foreach%>
        </select>
        </td>
      </tr>
      <tr>
        <td>隐藏栏目</td>
        <td>
        <select name="display">
          <option value="0"<%if !$column.display%>selected="selected" <%/if%>>是</option>
          <option value="1"<%if $column.display%>selected="selected" <%/if%>>否</option>
        </select></td>
      </tr>
      <tr>
        <td>栏目存放文件夹</td>
        <td><input type="text" class="text" name="classpath" id="classpath" value="<%$attr.classpath%>" />(默认为拼音缩写)</td>
      </tr>
      
      <tr>
        <td>绑定域名</td>
        <td><input type="text" class="text" name="domain" id="domain" value="<%$attr.domain%>" /></td>
      </tr>
      <tr>
        <td>栏目缩略图</td>
        <td><input type="text" class="text" name="classimg" id="classimg" value="<%$attr.classimg%>" /></td>
      </tr>
      <tr>
        <td>SEO标题</td>
        <td><input type="text" class="text" name="classtitle" id="classtitle" value="<%$attr.classtitle%>" /></td>
      </tr>
      <tr>
        <td>页面关键字</td>
        <td><input type="text" class="text" name="classkeyword" id="classkeyword" value="<%$attr.classkeyword%>" /></td>
      </tr>
      <tr>
        <td>栏目简介</td>
        <td><textarea name="intro"  cols="intro" rows="4" style="width:500px;"><%$attr.intro%></textarea></td>
      </tr>
      <tr>
        <td>
          列表模板
       </td>
        <td><input type="text" class="text" name="listtemp" id="listtemp" value="<%$attr.listtemp|default:"list.php"%>" /></td>
      </tr>
      <tr>
        <td>内容模板</td>
        <td><input type="text" class="text" name="contenttemp" id="contenttemp" value="<%$attr.contenttemp|default:"article.php"%>" /></td>
      </tr>
      <tr>
        <td>栏目首页默认文件名</td>
        <td><input type="text" class="text" name="defaultname" id="defaultname" value="<%$attr.defaultname|default:"index.html"%>" /></td>
      </tr>
      <tr>
        <td>栏目命名规则</td>
        <td><input type="text" class="text" name="classextension" id="classextension" value="<%$attr.classextension|default:'{$newsurl}/index_{$page}.html'%>" /></td>
      </tr>
      <tr>
        <td>内容页命名规则</td>
        <td><input type="text" class="text" name="contentextension" id="contentextension" value="<%$attr.contentextension|default:'{$newsurl}/{$aid}.html'%>" /></td>
      </tr>
      <tr>
        <td>
          内容
       </td>
        <td><textarea name="content" cols="8" rows="6" style="width:500px;"><%$attr.content%></textarea></td>
      </tr>
      <tr>
        <td>
          <input type="hidden" name="classid" id="classid" value="<%$attr.classid%>" />
          <input type="submit" name="" id="submit" value="提交" />
       </td>
        <td>&nbsp;</td>
      </tr>
    </table>
     </form>
 </div>
 </div>
</div>

<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'content' );
//]]>
CKFinder.SetupCKEditor(CKEDITOR, 'style/js/ckeditor/ckfinder/');
if (parent) setTimeout(function(){parent.restIframe();},500);
</script>
<div id="articleBox" style="display:none;">
</div>
</body>
</html>
